package com.wecan.web.filter;

import cn.dev33.satoken.interceptor.SaAnnotationInterceptor;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author liuzhihao
 * @Date 2022.01.26
 * @Version ${version}
 * @Description ${description}
 */
public class SecurityPerConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new SaAnnotationInterceptor()).addPathPatterns("/**");
    }
}
